package controller;

import view.MainFrame;

/**
 * This class is the main application class, it runs the whole program
 * @author alexisstefanski
 *
 */
public class AddressBookApplication {

	/* Keep reference of the ContactManager */
	public ContactManager cm;
	
	/**
	 * This is the main  
	 * @param args
	 */
	public static void main(String[] args) {
		
		AddressBookApplication app = new AddressBookApplication();
		app.cm = new ContactManager();
			//Alternative code to load contacts only with .ser file
			//app.cm.loadData();
		app.cm.loadDataFromCsv();
		MainFrame mainFrame = new MainFrame(app.cm);
		mainFrame.setVisible(true);
		
	}

}
